import request from '@/utils/request'

// 查询导入记录列表
export function listExportLog(query) {
  return request({
    url: '/exportLog/list',
    method: 'get',
    params: query
  })
}


// 新增导入记录
export function addExportLog(data) {
  return request({
    url: '/exportLog',
    method: 'post',
    data: data
  })
}

/** 修改备注 */
export function submitReark(data) {
  return request({
    url: '/totalComster/updateRemark',
    method: 'post',
    data: data
  })
}

/** 修改客户姓名 */
export function submitCustomerName(data) {
  return request({
    url: '/totalComster/updateCustomerName',
    method: 'post',
    data: data
  })
}

/** 修改客户星级 */
export function submitCustomerLevel(data) {
  return request({
    url: '/totalComster/updateCustomerLevel',
    method: 'post',
    data: data
  })
}

/** 修改客户状态 */
export function submitCustomerStatus(data) {
  return request({
    url: '/totalComster/updateCustomerStatus',
    method: 'post',
    data: data
  })
}

export function listLog(query) {
  return request({
    url: '/exportLog/logList',
    method: 'get',
    params: query
  })
}

export function oneKeyIssueToDeptExport(data) {
  return request({
    url: '/exportLog/oneKeyIssueToDept',
    method: 'post',
    data: data
  })
}

export function oneKeyIssueToUserExport(data) {
  return request({
    url: '/exportLog/oneKeyIssueToUser',
    method: 'post',
    data: data
  })
}
